import { request } from '@@/plugin-request';

export async function token(body) {
  return request('/admin/system/login/token', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

/* 获取登陆用户信息 */
export async function getLoginUserInfo() {
  return request('/admin/system/login/userInfo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
  });
}
